.scroll-y{
    height: 100vh;
    background-color: #efefef;
    view{
        //要想模拟触底函数，高度必须超出屏幕高度
        height: 600rpx;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        //奇数是天空蓝
        &:nth-child(odd){
            background-color: skyblue;
        }
        //偶数
        &:nth-child(even){
            background-color: lightcoral;
        }
    }
}